package com.exam.pojo.entity;

import cn.hutool.db.meta.TableType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@TableName("student")
public class Student {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer gender;//1男0女

    private String tel;

    @TableField("realName")
    private String realName;

    @TableField("departmentId")
    private Integer departmentId;

    @TableField("positionId")
    private Integer positionId;

    @TableField("roleId")
    private Integer roleId;

    @TableField("delFlag")
    private Integer delFlag;//1存在0删除
}
